class ENV:
    # 被测服
    url = 'http://127.0.0.1:8000/'
    register_url = 'http://127.0.0.1:8000/user/register/'
    # 自定化专用账号
    username = 'test1'
    password = 'test123yg'

class DBSql:
    """
    初始化时清除数据sql语句
    清空：用户 购物车 订单信息
    并插入 测试用户 test1
    """
    sql_file = rf"E:\workspace\自动化测试项目\UI_pytest\电子商城管理系统\daily_fresh_demo-master\db.sqlite3"
    sql_list = [
        'DELETE FROM df_order_orderdetailinfo',
        'DELETE FROM df_order_orderinfo',
        'DELETE FROM df_user_userinfo',
        'DELETE FROM df_cart_cartinfo',
        'UPDATE df_goods_goodsinfo SET gkucun = 100',
        "INSERT INTO df_user_userinfo (id, uname, upwd, uemail, ushou, uaddress, uyoubian, uphone) VALUES ('42', 'test1', '6866ac87acfade30770d147b10bcdc2ca14a3dc3', 'ki_1118@qq.com', '', '', '', '')"

    ]

# Selenium 默认隐式等待时间（秒）
SELENIUM_IMPLICIT_WAIT = 2.5
